package com.gitee.cashzhang27.test.boot.swagger.controller;

import com.gitee.cashzhang27.test.boot.swagger.entity.User;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiOperation;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * @author Cash Zhang
 * @version v1.0
 * @since 2019/05/22 09:30
 */
@RestController
@RequestMapping("user")
@Api(value = "UserManagerController", description = "用户管理")
public class UserManagerController {

  @PostMapping
  @ApiOperation(value = "添加用户")
  public void addUser(User user) {
    System.out.println(user.toString());
  }

}
